<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>用户基本信息</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="__PUBLIC__/X-admin/css/x-admin.css" media="all">
    </head>
    <body>
	

        <div class="x-body" >
			  <div class="layui-tab-content" style="height: 450px;">
			    <div class="layui-tab-item layui-show">
			    <!-- form  修改个人信息表单 -->
			    <form class="layui-form" action="" method="post" disabled >
			    	<input type="hidden" name="pid" value="{$list['pid']}" >
			    	<table class="layui-table" lay-skin="nob">
					  <colgroup>
					    <col width="20%">
					    <col width="30%">
					    <col width="20%">
					    <col width="30%">
					  </colgroup>
					  <tbody>
					    <tr>
						  <td>姓名</td>
						  <td>{$list['name']}</td>
					      <td>性别</td>
					      <td>
					      	<div class="layui-form-item">
					            <input type="radio" name="sex" value="1" disabled title="男" <if condition="$list['sex'] eq 1" >checked</if> >
					            <input type="radio" name="sex" value="0" disabled title="女" <if condition="$list['sex'] eq 0" >checked</if> >
					        </div>
					      </td>
					    </tr>
					    <tr>
					      <td>所在班级</td>
					      <td>{$list['class']}</td>
					      <td>所在小组</td>
					      <td>{$list['team']}</td>
					    </tr>
					    <tr>
					      <td>身份证号</td>
					      <td>{$list['card']}</td>
					      <td>绩效分</td>
					      <td>{$list['performance']}分</td>
					    </tr>
					    <tr>
					      <td>籍贯</td>
					      <td>{$list['address']}</td>
					      <td>手机号码</td>
					      <td>{$list['phone']}</td>
					    </tr>
					    <tr>
					      <td>QQ</td>
					      <td>{$list['qq']}</td>
					      <td>邮箱</td>
					      <td>{$list['email']}</td>
					    </tr>
					    <tr>
					      <td>毕业院校</td>
					      <td>{$list['school']}</td>
					      <td>学校所在省</td>
                <td>{$list['school_address']}</td>
					    </tr>
					    <tr>
					      <td>所修专业</td>
					      <td>{$list['subject']}</td>
					      <td>学历层次</td>
					      <td>
					      	<select name="education" disabled >
								<option value="">--请选择--</option>
								<option value="初中" <if condition="$list['education'] eq '初中'" >selected</if> >初中</option>
								<option value="高中" <if condition="$list['education'] eq '高中'" >selected</if> >高中</option>
								<option value="中专" <if condition="$list['education'] eq '中专'" >selected</if> >中专</option>
								<option value="大专" <if condition="$list['education'] eq '大专'" >selected</if> >大专</option>
								<option value="本科" <if condition="$list['education'] eq '本科'" >selected</if> >本科</option>
								<option value="本科以上" <if condition="$list['education'] eq '本科以上'" >selected</if> >本科以上</option>
						  	</select>
					      </td>
					    </tr>
					    <tr>
					      <td>计算机基础</td>
					      <td>
					      	<select name="computer" disabled >
								<option value="">--请选择--</option>
								<option value="0" <if condition="$list['computer'] eq 0" >selected</if> >零基础</option>
								<option value="1" <if condition="$list['computer'] eq 1" >selected</if> >有一点点基础</option>
								<option value="2" <if condition="$list['computer'] eq 2" >selected</if> >计算机操作还可以</option>
								<option value="3" <if condition="$list['computer'] eq 3" >selected</if> >学过编程语言</option>
								<option value="4" <if condition="$list['computer'] eq 4" >selected</if> >有PHP编程基础</option>
								<option value="5" <if condition="$list['computer'] eq 5" >selected</if> >从事过PHP工作</option>
							</select>
					      </td>
					      <td>工作经验</td>
                <td>
                  <select name="work_year" disabled>
                    <option value="">--请选择--</option>
                    <option value="0" <if condition="$list['work_year'] eq 0" >selected</if> >无</option>
                    <option value="1" <if condition="$list['work_year'] eq 1" >selected</if> >一年左右</option>
                    <option value="2" <if condition="$list['work_year'] eq 2" >selected</if> >一到两年</option>
                    <option value="3" <if condition="$list['work_year'] eq 3" >selected</if> >两到三年</option>
                    <option value="4" <if condition="$list['work_year'] eq 4" >selected</if> >三到五年</option>
                    <option value="5" <if condition="$list['work_year'] eq 5" >selected</if> >五年以上</option>
                  </select>
                </td>
					    </tr>
					    <tr>
					      <td>目标薪资</td>
                <!-- <td><input type="text" name="target" disabled value="{$list['target']}" class="layui-input"></td> -->
					      <td>{$list['target']}</td>
					      <td>紧急联系人</td>
                <!-- <td><input type="text" name="contacts_name" disabled value="{$list['contacts_name']}" class="layui-input"></td> -->
					      <td>{$list['contacts_name']}</td>
					    </tr>
					    <tr>
					      <td>与紧急联系人的关系</td>
                <!-- <td><input type="text" name="contacts_relation" value="{$list['contacts_relation']}" disabled class="layui-input"></td> -->
					      <td>{$list['contacts_relation']}</td>
					      <td>紧急联系人电话</td>
                <!-- <td><input type="text" name="contacts_phone" disabled value="{$list['contacts_phone']}" class="layui-input"></td> -->
					      <td>{$list['contacts_phone']}</td>
					    </tr>
					  </tbody>
					</table>
			            
					</form>
			    </div>
			</div>
           

        </div>
        <script src="__PUBLIC__/X-admin/lib/layui/layui.js" charset="utf-8"></script>
        <script src="__PUBLIC__/X-admin/js/x-layui.js" charset="utf-8"></script>

        <script>

            layui.use(['laydate','element','laypage','layer','form'], function(){
                $ = layui.jquery;//jquery
  				// var form = layui.form();
              laydate = layui.laydate;//日期插件
              lement = layui.element();//面包导航
              laypage = layui.laypage;//分页
              layer = layui.layer;//弹出层
              form = layui.form();
              

              //以上模块根据需要引入


              laypage({
                cont: 'page'
                ,pages: 100
                ,first: 1
                ,last: 100
                ,prev: '<em><</em>'
                ,next: '<em>></em>'
              }); 
              
              var start = {
                min: laydate.now()
                ,max: '2099-06-16 23:59:59'
                ,istoday: false
                ,choose: function(datas){
                  end.min = datas; //开始日选好后，重置结束日的最小日期
                  end.start = datas //将结束日的初始值设定为开始日
                }
              };
              
              var end = {
                min: laydate.now()
                ,max: '2099-06-16 23:59:59'
                ,istoday: false
                ,choose: function(datas){
                  start.max = datas; //结束日选好后，重置开始日的最大日期
                }
              };
              
              document.getElementById('LAY_demorange_s').onclick = function(){
                start.elem = this;
                laydate(start);
              }
              document.getElementById('LAY_demorange_e').onclick = function(){
                end.elem = this
                laydate(end);
              }
              
            });

            //批量删除提交
             function delAll () {
                layer.confirm('确认要删除吗？',function(index){
                    //捉到所有被选中的，发异步进行删除
                    layer.msg('删除成功', {icon: 1});
                });
             }
             /*添加*/
            function admin_add(title,url,w,h){
                x_admin_show(title,url,w,h);
            }

             /*停用*/
            function admin_stop(obj,id){
                layer.confirm('确认要停用吗？',function(index){
                    //发异步把用户状态进行更改
                    $(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="admin_start(this,id)" href="javascript:;" title="启用"><i class="layui-icon">&#xe62f;</i></a>');
                    $(obj).parents("tr").find(".td-status").html('<span class="layui-btn layui-btn-disabled layui-btn-mini">已停用</span>');
                    $(obj).remove();
                    layer.msg('已停用!',{icon: 5,time:1000});
                });
            }

            /*启用*/
            function admin_start(obj,id){
                layer.confirm('确认要启用吗？',function(index){
                    //发异步把用户状态进行更改
                    $(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="admin_stop(this,id)" href="javascript:;" title="停用"><i class="layui-icon">&#xe601;</i></a>');
                    $(obj).parents("tr").find(".td-status").html('<span class="layui-btn layui-btn-normal layui-btn-mini">已启用</span>');
                    $(obj).remove();
                    layer.msg('已启用!',{icon: 6,time:1000});
                });
            }
            //编辑
            function admin_edit (title,url,id,w,h) {
                x_admin_show(title,url,w,h); 
            }
            /*删除*/
            function admin_del(obj,id){
                layer.confirm('确认要删除吗？',function(index){
                    //发异步删除数据
                    $(obj).parents("tr").remove();
                    layer.msg('已删除!',{icon:1,time:1000});
                });
            }
            </script>
            <script>
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
          var s = document.getElementsByTagName("script")[0]; 
          s.parentNode.insertBefore(hm, s);
        })();
        </script>
    </body>
</html>